# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html

import scrapy

from components.custom_item import UpdateCustomItem


class NetMohurdDetailsItem(UpdateCustomItem):
    enterprise_id = scrapy.Field()
    qualification_category_level_1 = scrapy.Field()
    qualification_category_level_2 = scrapy.Field()
    qualification_category_level_3 = scrapy.Field()
    qualification_category_level_4 = scrapy.Field()
    enterprise_registration_location = scrapy.Field()
    enterprise_name = scrapy.Field()
    taxpayer_id = scrapy.Field()
    legal_person = scrapy.Field()
    registration_type = scrapy.Field()
    registered_territory = scrapy.Field()
    business_address = scrapy.Field()


class NetMohurdQualificationItem(UpdateCustomItem):
    enterprise_id = scrapy.Field()
    taxpayer_id = scrapy.Field()
    qualification_category = scrapy.Field()
    qualification_certificate_number = scrapy.Field()
    qualifications_name = scrapy.Field()
    authority_issuing = scrapy.Field()
    date_issuance = scrapy.Field()
    validity_date = scrapy.Field()


class NetMohurdPersonnelItem(UpdateCustomItem):
    enterprise_id = scrapy.Field()
    taxpayer_id = scrapy.Field()
    enrollment = scrapy.Field()
    name = scrapy.Field()
    id_num = scrapy.Field()
    registration_category = scrapy.Field()
    registration_no = scrapy.Field()
    registration_major = scrapy.Field()


class NetMohurdProjectItem(UpdateCustomItem):
    project_id = scrapy.Field()
    enterprise_id = scrapy.Field()
    taxpayer_id = scrapy.Field()
    project_no = scrapy.Field()
    project_name = scrapy.Field()
    project_territory = scrapy.Field()
    project_category = scrapy.Field()
    project_unit = scrapy.Field()
